package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 商品基本信息表
 */
@Data
@Accessors(chain = true)
@TableName("goods")
public class Goods implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 分类id
	 */
	private Integer pid;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 卖点
	 */
	private String sellinfo;
	/**
	 * 商城价，整数，分
	 */
	private Integer price;
	/**
	 * 市场价，整数，分
	 */
	private Integer marketprice;
	/**
	 * 库存量
	 */
	private Integer num;
	/**
	 * 发货地
	 */
	private String address;
	/**
	 * 主图片
	 */
	private String images;
	/**
	 * 上架、下架
	 */
	private Boolean status;
	/**
	 * 1热卖
	 */
	private Boolean hot;
	/**
	 * 1置顶
	 */
	private Boolean top;
	/**
	 * 1推荐
	 */
	private Boolean recommender;
	/**
	 * 
	 */
	private Date created;
	/**
	 * 
	 */
	private Date updated;

	/**
	 * 商品规格，个、袋、斤、包
	 */
	private String specs;

	@TableField(exist = false)
	private List<GoodsImages> imagesList;

	@TableField(exist = false)
	private GoodsInfo goodsInfoEntity;

}
